﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!-- Meta -->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link id="page_favicon" href="favicon.ico" rel="icon" type="image/x-icon" />
		<!-- End of Meta -->
		
		<!-- Page title -->
		<title>İşte Site Web Yönetim Paneli</title>
		<!-- End of Page title -->
		
		<!-- Libraries -->
		﻿<!-- css.php başla -->
<link type="text/css" href="css/layout.css" rel="stylesheet" />	
<link type="text/css" href="css/style.css" rel="stylesheet" />	
<link type="text/css" href="css/smoothness/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
<link type="text/css" href="css/jquery.fancybox.css" rel="stylesheet" />	
<!-- css.php son -->		﻿<!-- js.php başla -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="js/easyTooltip.js"></script>
<!--<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>-->
<script type="text/javascript" src="js/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<!-- js.php son -->		<!-- End of Libraries -->	
	</head>
	<body>
		<!-- Container -->
		<div id="container">
		
			<!-- Header -->
			<div id="header">
				
				<!-- Top -->
				<div id="top">
					<!-- Logo -->
					<div class="logo"> 
						<a href="?" title="Yönetim Anasayfa" class=""><img src="assets/logo.png" alt="İşte Site Web Yönetim Paneli" /></a> 
					</div>
					<!-- End of Logo -->
					
					<!-- Meta information -->
					<div class="meta">
						<p>Hoşgeldin, Genel Yönetici <!-- <a href="#" title="1 new private message from Elaine!" class="">1 new message!</a> --></p>
						<ul>
							<li><a href="?logout" title="Güvenli çıkış"><span class="ui-icon ui-icon-power"></span>Çıkış</a></li>
							<li><a href="?settings.changePassword" title="Ayarları değiştir" class=""><span class="ui-icon ui-icon-wrench"></span>Ayarlar</a></li>
							<!-- <li><a href="#" title="Profil bilgileri" class=""><span class="ui-icon ui-icon-person"></span>Hesabım</a></li> -->
						</ul>	
					</div>
					<!-- End of Meta information -->
				</div>
				<!-- End of Top-->
			
				<!-- The navigation bar -->
				<div id="navbar">
					<ul class="nav">
						<li><a href="?">Anasayfa</a></li>
						<li><a href="?homeSliders.list">Banner</a></li>
						<li><a href="?products.list">Ürünler</a></li>
						<li><a href="?news.list">Haberler</a></li>
						<li><a href="?announcements.list">Duyurular</a></li>
					</ul>
				</div>
				<!-- End of navigation bar" -->
				
				
				<!-- Search bar -->
				<!-- 
				<div id="search">
					<form action="/search/" method="POST">
						<p>
							<input type="submit" value="" class="but" />
							<input type="text" name="q" value="Search the admin panel" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />
						</p>
					</form>
				</div>
				-->
				<!-- End of Search bar -->
			
			</div>
			<!-- End of Header -->
			
			<!-- Background wrapper -->
			<div id="bgwrap">
		
				<!-- Main Content -->
				<div id="content">
					<div id="main">
						<style>
	.statusIcon {	height:16px; width:16px; border:0px solid #000;}
	.listBannerPicture {	height : 80px;}

	.ui-state-highlight { height: 85px; line-height: 1.2em; }
</style>

<script>
var startSortingIndex = 0;
var stopSortingIndex = 0;
$(function(){
	var itemCount = $("tbody > tr").length;
	if(itemCount>1)
	{
		$( "tbody" ).sortable({
         placeholder: "ui-state-highlight",
         tolerance: 'pointer',
         forceHelperSize:true,
        	update: function(e, ui) {
        		//alert(itemCount);
        		var itemIndex = ui.item.index();
        		switch(itemIndex)
        		{
        			case 0:
        				var nextItemId = $("tbody > tr").eq(1).attr("id").substring(4);

        			break;

        			case itemCount:

        			break;

        			default:

        			break;
        		}
        		alert(itemIndex);
			}
     });
	}
	
  	$( "#sortable" ).disableSelection();

	
	//-> Slider silme işlemi
	$(".iconDelete").bind("click", function(event){
		var id=$(event.target).attr("id").substring(7);
		if(confirm("Bu duyuruyu silmek istediğinizden emin misiniz?"))
		{
			var result = toPost("?homeSliders.deleteProcess","action=1&id="+id);
			if(result == "OK")
			{
				$('#row_'+id).remove();
				winResize();
			}
		}
	});

	
	// Toplu slider silme işlemi
	$(".iconDeleteAll").bind("click",function(){	
		if(confirm("Seçili duyuruları kalıcı olarak silmek istediğinizden emin misiniz?"))
		{
			$(".itemSelect:checked").each(function(){
				var id=$(this).attr("id").substring(3);
				var result = toPost("?homeSliders.deleteProcess","action=1&id="+id);
				if(result == "OK")
				{
					$('#row_'+id).remove();
					winResize();
				}
			});
		}
	});


	// Slider düzenleme 
	$(".iconEdit").bind("click", function(event){
		var id=$(event.target).attr("id").substring(8);
		window.location.href="?homeSliders.edit&id="+id;
	});


	// slider durumu değiştirmek
	$(".statusIcon").bind("click", function(event){
		var id=$(event.target).attr("id").substring(7);
		var result2 = toPost("?homeSliders.otherProcess","action=1&process=changeStatus&id="+id);
		switch(result2)
		{
			case "active":
				$('#status_'+id).attr("src","images/iconOk.png");
			break;

			case "passive":
				$('#status_'+id).attr("src","images/iconCancel.png");
			break;

			default:
				alert(result2);
			break;
		}
	});
});
</script>

<table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
	<thead>
		<tr>
			<td class="actionCheckbox"><input type="checkbox" class="checkall" /></td>
			<td class="actionArea">
				<!--<a href="#" class="iconEdit"></a>-->
				<a href="#" class="iconDeleteAll" title="Toplu sil"></a>
				<!--<a href="#" class="iconPreview"></a>-->
			</td>
			<td style="min-width:200px">BANNER</td>
			<td>İÇERİK</td>
			<td class="center">YAYINA BAŞLAMA</td>
			<td class="center">YAYIN SONLANMA</td>
			<td class="center">DURUMU</td>
		</tr>
	</thead>
	<tbody>
		<tr class="odd" id="row_1" class="sortableTr">
			<td><input type="checkbox" name="id[1]" class="itemSelect" id="id_1" value="1" title="1" /></td>
			<td>
				<a href="#" class="iconEdit" id="editBtn_1" title="Düzenle"></a>
				<a href="#" class="iconDelete" id="delBtn_1" title="Sil"></a>
				<!--<a href="#" class="iconPreview"></a>-->
			</td>
			<td><a href="../pictures/homeSliders/bigs/01.jpg" class="galeri"><img src="../pictures/homeSliders/thumbs/01.jpg" class="listThumbPicture" /></a></td>
			<td>&nbsp;</td>
			<td class="center">01/10/2012</td>
			<td class="center">31/10/2012</td>
			<td class="center"><img src="images/iconOk.png" class="statusIcon" id="status_1" /></td>
		</tr>
		<tr class="odd" id="row_2" class="sortableTr">
			<td><input type="checkbox" name="id[2]" class="itemSelect" id="id_2" value="2" title="2" /></td>
			<td>
				<a href="#" class="iconEdit" id="editBtn_2" title="Düzenle"></a>
				<a href="#" class="iconDelete" id="delBtn_2" title="Sil"></a>
				<!--<a href="#" class="iconPreview"></a>-->
			</td>
			<td><a href="../pictures/homeSliders/bigs/01.jpg" class="galeri"><img src="../pictures/homeSliders/thumbs/01.jpg" class="listThumbPicture" /></a></td>
			<td>&nbsp;</td>
			<td class="center">01/10/2012</td>
			<td class="center">31/10/2012</td>
			<td class="center"><img src="images/iconOk.png" class="statusIcon" id="status_1" /></td>
		</tr>
	</tbody>
</table>		
						
					</div>
				</div>
				<!-- End of Main Content -->
				
				<!-- Sidebar -->
				<div id="sidebar">
					<style>
	ul.subMenu {	display:block; position:relative; padding-top:10px; }
	ul.subMenu > li {	display:block; position:relative;}
	ul.subMenu > li > a {	display:block; position:relative; text-decoration:none; color:#333; font-weight:bold;}
</style>
<ul class="subMenu">
	<li><a href="?homeSliders.list">Bannerlar</a></li>
	<li><a href="?homeSliders.add">Banner Ekle</a></li>
</ul>
				</div>
				<!-- End of Sidebar -->
				
			</div>
			<!-- End of bgwrap -->
		</div>
		<!-- End of Container -->
		
		<!-- Footer -->
		<div id="footer">
			<p class="mid">
				<!-- Change this to your own once purchased -->
				&copy; İşte Site Web Yönetim Paneli 2012. Tüm hakları saklıdır.
				<!-- -->
			</p>
		</div>
		<!-- End of Footer -->
			</body>
</html>


